package com.itboye.ihomebank.bean;

import java.io.Serializable;

public class NotificationBean implements Serializable{
/**
 "display_type": "notification",
 "FJD": {
	 "contract_no": "CTR2017111010212",
 "type": "contract_owner_written"
 },
 "msg_id": "uapuqf3152021217593601",
 "body": {
 "after_open": "go_activity",
 "play_lights": "true",
 "ticker": "签约消息",
 "play_vibrate": "true",
 "activity": "contract_message",
 "text": "合同号：CTR2017111010212 的合同 房东已填写合同，前往查看",
 "title": "签约消息",
 "play_sound": "true"
 },
 "random_min": 0
 }
 */
	/**
	 * after_open ：打开类型(go_app=>打开应用;go_activity=>打开自定义页面) activity ：
	 * after_open=go_activity时打开的自定义页面标志 (见下方表格:activity) FJD ： 自定义参数数组
	 * (见下方表格:FJD) activity(打开页面描述) FJD(携带变量描述) system_message(打开系统消息列表)
	 * id(消息ID),未登录时前往登陆 contract_message(打开签约列表) contract_no(合同号)
	 * lock_message(打开智能锁消息列表) id(消息ID),未登录时前往登陆
	 */





	String msg_id, display_type, random_min;
	Body body;
	FJD extra;

	public FJD getExtra() {
		return extra;
	}

	public void setExtra(FJD extra) {
		this.extra = extra;
	}

	public String getMsg_id() {
		return msg_id;
	}

	public void setMsg_id(String msg_id) {
		this.msg_id = msg_id;
	}

	public String getDisplay_type() {
		return display_type;
	}

	public void setDisplay_type(String display_type) {
		this.display_type = display_type;
	}

	public String getRandom_min() {
		return random_min;
	}

	public void setRandom_min(String random_min) {
		this.random_min = random_min;
	}

	public Body getBody() {
		return body;
	}

	public void setBody(Body body) {
		this.body = body;
	}

	public static class Body {
		String ticker, title, text, play_vibrate, play_lights, play_sound,
				after_open, activity;

		public String getTicker() {
			return ticker;
		}

		public void setTicker(String ticker) {
			this.ticker = ticker;
		}

		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}

		public String getPlay_vibrate() {
			return play_vibrate;
		}

		public void setPlay_vibrate(String play_vibrate) {
			this.play_vibrate = play_vibrate;
		}

		public String getPlay_lights() {
			return play_lights;
		}

		public void setPlay_lights(String play_lights) {
			this.play_lights = play_lights;
		}

		public String getPlay_sound() {
			return play_sound;
		}

		public void setPlay_sound(String play_sound) {
			this.play_sound = play_sound;
		}

		public String getAfter_open() {
			return after_open;
		}

		public void setAfter_open(String after_open) {
			this.after_open = after_open;
		}

		public String getActivity() {
			return activity;
		}

		public void setActivity(String activity) {
			this.activity = activity;
		}

		@Override
		public String toString() {
			return "Body{" +
					"ticker='" + ticker + '\'' +
					", title='" + title + '\'' +
					", text='" + text + '\'' +
					", play_vibrate='" + play_vibrate + '\'' +
					", play_lights='" + play_lights + '\'' +
					", play_sound='" + play_sound + '\'' +
					", after_open='" + after_open + '\'' +
					", activity='" + activity + '\'' +
					'}';
		}
	}

	@Override
	public String toString() {
		return "NotificationBean{" +
				"msg_id='" + msg_id + '\'' +
				", display_type='" + display_type + '\'' +
				", random_min='" + random_min + '\'' +
				", body=" + body +
				", extra=" + extra +
				'}';
	}
}
